# Contributor: Feng Shu <tumashu@163.com>

_realname=rime-essay
pkgbase=mingw-w64-${_realname}
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}"
pkgver=0.0.0.20200207
_commit=ee2df5dc0f8e94e30dd3a5166609b7169f982b0d
pkgrel=1
pkgdesc="Essential files for building up your Rime configuration (mingw-w64)"
arch=('any')
mingw_arch=('mingw32' 'mingw64' 'ucrt64' 'clang64')
url="https://github.com/rime/rime-essay"
license=('LGPL')
source=("https://github.com/rime/rime-essay/archive/$_commit/rime-essay-$_commit.tar.gz")
sha512sums=('c602c36498a343cad57490d3c34738d3e630f4c7baf48c23f6caf2d8a175be21a274e235f7ee9b5e3ee281b5caa4cb01ff35c7654c388b9a16ea03b9aba738d4')

package() {
  cd rime-essay-$_commit
  install -Dm644 *.txt -t ${pkgdir}${MINGW_PREFIX}/share/rime-data/
}
